home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_313
/
uucp
/
uucp1.lzh
/
src
/
lib
/
tmpfile.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-10
|
376b
|
23 lines
/*
* TMPFILE.C
*
* (C) Copyright 1989-1990 by Matthew Dillon, All Rights Reserved.
*
* create a temporary file
*
* template limited to 16 chars
*/
char *
TmpFileName(template)
char *template;
{
static char Template[256];
static unsigned short Idx;
sprintf(Template, "%s-%08lx.TMP", template, (long)FindTask(NULL) + Idx++);
return(Template);
}